package chat.whiteboard.components;

import java.awt.event.ActionListener;

import javax.swing.JTextPane;

import chat.whiteboard.WhiteBoardController;


public class ChatTextArea extends JTextPane implements ICommand {
	private WhiteBoardController controller;
	public ChatTextArea(ActionListener act, WhiteBoardController controller) {
		this.controller = controller;
		//addActionListener(act);
		controller.registerChatTextArea(this);
	}
	@Override
	public void execute() {
		controller.registerChatTextArea(this);
	}

}
